package main

import (
	"bytes"
	"fmt"
)

func main() {
	b := bytes.Fields([]byte("  foo bar  baz   "))
	fmt.Printf("%q", b)
	//["foo" "bar" "baz"]
}
